package com.wish.building.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author 刘郑欣
 * @since 2022-03-27
 */
@TableName("sys_region")
@ApiModel(value = "Region对象", description = "地区表")
public class Region implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer regionId;

    private String regionCode;

    private String regionName;

    private Integer parentId;

    private Integer regionLevel;

    private Integer regionOrder;

    private String regionNameEn;

    private String regionShortnameEn;

    @ApiModelProperty("开通城市 0 未开通 1 已开通")
    private Integer flag;

    private LocalDateTime updateTime;

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }
    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }
    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public Integer getRegionLevel() {
        return regionLevel;
    }

    public void setRegionLevel(Integer regionLevel) {
        this.regionLevel = regionLevel;
    }
    public Integer getRegionOrder() {
        return regionOrder;
    }

    public void setRegionOrder(Integer regionOrder) {
        this.regionOrder = regionOrder;
    }
    public String getRegionNameEn() {
        return regionNameEn;
    }

    public void setRegionNameEn(String regionNameEn) {
        this.regionNameEn = regionNameEn;
    }
    public String getRegionShortnameEn() {
        return regionShortnameEn;
    }

    public void setRegionShortnameEn(String regionShortnameEn) {
        this.regionShortnameEn = regionShortnameEn;
    }
    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Region{" +
            "regionId=" + regionId +
            ", regionCode=" + regionCode +
            ", regionName=" + regionName +
            ", parentId=" + parentId +
            ", regionLevel=" + regionLevel +
            ", regionOrder=" + regionOrder +
            ", regionNameEn=" + regionNameEn +
            ", regionShortnameEn=" + regionShortnameEn +
            ", flag=" + flag +
            ", updateTime=" + updateTime +
        "}";
    }
}
